Convolutional Neural Networks

How it works

/assets/images/convolutional-nn-1.png|600

1. Convolution operation

2. Pooling

3. Flattening

/assets/images/convolutional-nn-4.png|500

4. Full connection

The flattened vectors are propagated into an ANN as the input layer
/assets/images/convolutional-nn-5.png|500

Size calculation

Assuming that the input shape is nh×nw and the convolution kernel shape is kh×kw, the output shape will be (nhkh+1)×(nwkw+1).
Techniques can also change the output shape:

Padding

Stride